package com.xing;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xing.server.mapper.AdminMapper;
import com.xing.server.mapper.EmployeeMapper;
import com.xing.server.pojo.Admin;
import com.xing.server.pojo.Employee;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Arrays;
import java.util.List;

/**
 * 测试
 *
 * @author: xingfuhao
 * @create: 2022-01-08 20:55
 */
public class Demo {

    @Autowired
    private AdminMapper adminMapper;
    @Autowired
    private EmployeeMapper employeeMapper;

    @Test
    public void testMybatisPlus(){
        List<Admin> admins = adminMapper.selectBatchIds(Arrays.asList(1, 2));
        System.out.println(admins);
        QueryWrapper<Admin> adminQueryWrapper = new QueryWrapper<>();
    }

    @Test
    public void t(){
        List<Employee> employees = employeeMapper.selectList(null);
        System.out.println(employees);
    }


}
